package com.ww7h.bigobj

import android.content.Context
import com.ww7h.ui.base.ui.adapter.RecyclerViewAdapter
import com.ww7h.ui.base.ui.adapter.ViewHolderFactory

/**
 * ================================================
 * 描述：
 * 来源：     Android Studio.
 * 项目名：   BigObj
 * 包名：     com.ww7h.bigobj
 * 创建时间：  2020/11/6 01:33
 * @author   ww
 * ================================================
 */
class DemoAdapter(context: Context): RecyclerViewAdapter<DemoModel>(context) {
    override val viewHolderFactory: ViewHolderFactory<DemoModel> = DemoViewHolderFactory()


    override fun getItemViewType(position: Int): Int {
        return getItem(position).viewType
    }

}